package com.example.demo.mapper;

import com.example.demo.entity.Comment;
import com.example.demo.entity.vo.CommentVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Description:
 * User: 故我
 * Date: 2023-11-16
 * Time: 22:46
 */
@Mapper
public interface CommentMapper {
    // 向文章中添加一条评论
    int AddComment(CommentVO commentVO);

    // 获取该篇文章所有的评论
    List<CommentVO> getAllComment(@Param("aid") Integer aid);
}
